Implement doc tests
authorAlex Crichton <alex@alexcrichton.com>
Fri, 1 Aug 2014 03:21:13 +0000 (20:21 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 5 Aug 2014 17:46:12 +0000 (10:46 -0700)
commit0484cd880eded66739792cc1bc8e393e9f108365
treeeb2bf630dc8a72cae464aaa6da1226e0439c9155
parent505593aeaea364aaefece4188eb3c92c678a0b44
Implement doc tests

Whenever `cargo test` is run and a testable library target is available, the doc
tests will be run. This can be opted out of with `test = false` as usual.

This is currently not super useful due to rust-lang/rust#16157, but I expect
that to be merged soon. In the meantime examples will need to `extern crate foo`
explicitly.
src/cargo/ops/cargo_compile.rs
src/cargo/ops/cargo_rustc/mod.rs
src/cargo/ops/cargo_test.rs
src/cargo/util/toml.rs
tests/support/mod.rs
tests/test_cargo_freshness.rs
tests/test_cargo_test.rs